package com.tianhui.consignortwofei.mvp.model;

import android.content.Context;

import com.fgs.common.CommonModel;
import com.fgs.common.api.CommonConfig;
import com.fgs.common.progress.ObserverResponseListener;
import com.tianhui.consignortwofei.api.OrderApiService;
import com.tianhui.consignortwofei.mvp.model.enty.FeedBackInfo;

import io.reactivex.ObservableTransformer;

/**
 * @author fgs
 * @date 2020/5/7
 * @description
 **/
public class FeedBackModel<T> extends CommonModel {
    /**
     * 意见反馈提交
     *
     * @param context
     * @param info
     * @param isDialog
     * @param transformer
     * @param observerListener
     */
    public void feedBackCommitModel(Context context, FeedBackInfo info, boolean isDialog,
                                    ObservableTransformer<T, T> transformer, ObserverResponseListener observerListener) {

        subscribe(context, CommonConfig.getInstance().create(OrderApiService.class).feedBackCommit(info), observerListener, transformer, isDialog, true);
    }


    /**
     * 司机违约
     *
     * @param context
     * @param info
     * @param isDialog
     * @param transformer
     * @param observerListener
     */
//    public void driverDefaultCommitModel(Context context, DriverDefaultInfo info, boolean isDialog,
//                                         ObservableTransformer<T, T> transformer, ObserverResponseListener observerListener) {
//
//        subscribe(context, CommonConfig.getInstance().create(OrderApiService.class).driverDefaultCommit(info), observerListener, transformer, isDialog, true);
//    }


}
